import { request } from 'config/request'

// 获取企业列表
export async function getEnterpriseList(params) {
    return request({
        url: `admin/enterprise/list`,
        method: 'POST',
        data: params
    });
};
// 企业入驻
export async function enterpriseRegister(params) {
    return request({
        url: `admin/enterprise/register`,
        method: 'POST',
        data: params
    });
};

//企业入驻审核
export async function enterpriseAudit(params) {
    return request({
        url: `admin/enterprise/audit`,
        method: 'POST',
        headers: {
            "Content-type": "application/json"
        },
        data: params
    });
};

// 企业详情
export async function enterpriseDetail(id) {
    return request({
        url: `admin/enterprise/detail/${id}`,
        method: 'GET',
        headers: {
            "Content-type": "application/json"
        }
    });
};

//企业启用禁用
export async function enterpriseBan(params) {
    return request({
        url: `admin/enterprise/ban`,
        method: 'POST',
        headers: {
            "Content-type": "application/json"
        },
        data: params
    });
};




